package com.zxlspace.design.pattern.singleton;

/**
 * 单例：懒汉模式
 */
public class LazySingleton {

    private static LazySingleton instance = null;

    private LazySingleton() {

    }

    public static LazySingleton getInstance() {
        if (null == instance) {
            instance = new LazySingleton();
        }
        return instance;
    }
}
